package com.swotplus.quartz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.swotplus.system","com.swotplus.quartz","com.swotplus.framework","com.swotplus.common"})
@MapperScan("com.swotplus.system.**.mapper")
@EnableTransactionManagement
@EnableScheduling
@EnableAsync
public class Application {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(Application.class);
        //需要把监听器加入到spring容器中
//        application.addListeners(new MyContextListener());
        application.run(args);
    }

}